<template>
    <div>
        <div class="book-box">
            <p>{{infoObj.title}}</p>
            <p>{{infoObj.author}}</p>
            <p>-------------------------------------------------</p>
            <p>{{infoObj.text}}</p>
        </div>
        <p class="lue">以下略...</p>
    </div>
</template>

<script>
export default {
    props:{
        infoObj:{
            type: Object,
        }
    },
    name:'Bookdetails'
}
</script>

<style lang="scss" scoped>
.book-box{
    width: 340px;
    margin: 26px auto;
    background-color: #eee;
    border-radius: 6px;
    padding: 20px 16px;
    box-sizing: border-box;
    p{
        font-size: 14px;
        color: #666;
        margin-bottom: 6px;
    }
    p:nth-child(1){
        font-size: 18px;
        color: #000;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    p:nth-child(3){
        color: #bbb;
    }
}
.lue{
    text-align: center;
}
</style>